import {get,post,del,put} from '@/http/request.js'

/*
	管理apl


 */


export const getLoginStatus = (params)=> post('/admin/login/status',params)

//Singer

export const getSingeradd = (params)=> post('/singer/add',params)

export const geteduAll = (params)=> get('/edu/teacher/pageTeacher',params)

export const getSingerById = (params)=> get('/singer/single',params)

export const getSingerName = (params)=> get('/singer/singername',params)

export const getSingerDelect = (params)=> del('/singer/del',params)

export const getSingerupdate = (params)=> put('/singer/up',params)


//song

export const getSongadd = (params)=> post('/Song/add',params)

export const getSongAll = (params)=> get(`/Song/SongAll`,params)

export const getSongs = ()=> get(`/Song/Songs`)

export const getSongName = (params)=> get(`/Song/SongName`,params)

export const getSongUp = (params)=> put(`/Song/up`,params)

export const getSongDel = (params)=> del(`/Song/delSongs`,params)

export const getSongIds = (params)=> get(`/Song/Songids`,params)

//SongList

export const getSongListadd = (params)=> post('/SongList/SongListAdd',params)

export const getSongListAll = ()=> get(`/SongList/SongListAll`)

export const getSongListUp = (params)=> put(`/SongList/SongListUp`,params)

export const getSongListDel = (params)=> del(`/SongList/SongListDel`,params)


//ListSong`


export const getListSongadd = (params)=> post('/ListSong/ListSongAdd',params)

export const getListSongAll = ()=> get(`/ListSong/ListSongAll`)

export const getListSongAlls = (params)=> get(`/ListSong/ListSongAlls`,params)

export const getListSongUp = (params)=> put(`/ListSong/ListSongUp`,params)

export const getListSongDel = (params)=> del(`/ListSong/listSongDel`,params)

export const getListSongserSingId = (params)=> post(`/ListSong/serSinger`,params)


//Consumer

export const getConsumeradd = (params)=> post('/Consumer/ConsumerAdd',params)


export const Consumerverification = (params)=> post('/Consumer/verification',params)

export const getConsumerAll = ()=> get(`/Consumer/ConsumerAll`)

export const getConsumerById = (params)=> get(`/Consumer/ConsumerById`,params)

export const getConsumerUp = (params)=> put(`/Consumer/ConsumerUp`,params)

export const getConsumerDel = (params)=> del(`/Consumer/ConsumerDel`,params)

export const getConsumerName = (params)=> get(`/Consumer/ConsumerName`,params)

//收藏Collect
export const getCollectUserAll = (id)=> get(`/Collect/CollectUserAll?id=${id}`);

export const CollectDel = (userId,songId)=> del(`/Collect/CollectDel?userId=${userId}&songId=${songId}`)
